package home.bean;

// 轮播图类
import java.io.Serializable;

public class Carousel implements Serializable {
    private static final long serialVersionUID = 1L;
    private String carouselUrl;
    private String redirectUrl;

    // 构造方法
    public Carousel() {}

    public Carousel(String carouselUrl, String redirectUrl) {
        this.carouselUrl = carouselUrl;
        this.redirectUrl = redirectUrl;
    }

    // Getter 和 Setter
    public String getCarouselUrl() { return carouselUrl; }
    public void setCarouselUrl(String carouselUrl) { this.carouselUrl = carouselUrl; }

    public String getRedirectUrl() { return redirectUrl; }
    public void setRedirectUrl(String redirectUrl) { this.redirectUrl = redirectUrl; }

    // 重写 toString 方便调试
    @Override
    public String toString() {
        return "Carousel{" +
                "carouselUrl='" + carouselUrl + '\'' +
                ", redirectUrl='" + redirectUrl + '\'' +
                '}';
    }
}
